xen: arm: handle AArch32 userspace when dumping 64-bit guest state.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 12 Aug 2014 13:32:27 +0000 (15:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Aug 2014 13:32:27 +0000 (15:32 +0200)
commitfc0cafeab30fe93963457fafbad7a01c7f55ea5f
tree0ea2ad7ec32b6d1b3c8e11c7a562d1ca9352b130
parent95e6d82224689fdfd967a093a4d69efc24c17e91
xen: arm: handle AArch32 userspace when dumping 64-bit guest state.

A 64-bit guest can still be in 32-bit mode when running userspace,
handle this case by dumping the correct 32-bit state.

Note that on ARM it is not possible to change mode without the help
of the next exception level, hence there is no way a 64-bit guest can
be running in 32-bit kernel modes.

This is part of CVE-2014-5147 / XSA-102.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/traps.c